2ced8dce5023d4d447cb3c7790e45f7f7c132a0f,base/src/main/java/com/fasterxml/jackson/jaxrs/base/ProviderBase.java,ProviderBase,writeTo,#Object#Class#Type#Annotation[]#MediaType#MultivaluedMap#OutputStream#,557

Before Change


                    //    since forcing of type will then force use of content serializer, which is
                    //    generally not the intent. Fix may require addition of functionality in databind

                    rootType = writer.getTypeFactory().constructType(genericType);
                    /* 26-Feb-2011, tatu: To help with [JACKSON-518], we better recognize cases where
                     *    type degenerates back into "Object.class" (as is the case with plain TypeVariable,
                     *    for example), and not use that.
                     */
                    if (rootType.getRawClass() == Object.class) {
                        rootType = null;
                    }
                }

After Change



					TypeFactory typeFactory = writer.getTypeFactory();
					rootType = typeFactory.constructType(genericType);
					Class<?> rawClass = rootType.getRawClass();
                    /* 26-Feb-2011, tatu: To help with [JACKSON-518], we better recognize cases where
                     *    type degenerates back into "Object.class" (as is the case with plain TypeVariable,
                     *    for example), and not use that.